<?php
  class Plugins_Profileform extends model {
  
  
  
  function getformadd($productid="")
  {
  

  
$code  = '<div class="wrpPlg clBg5 clBd2 bdFull image1">'."\n";
$code .= '<div class="wrpOutAtcPlg">'."\n";
$code .= '<div class="wrpAtcPlg">'."\n";
$code .= '<span class="ico3 icoProfilePlg"></span>'."\n";
$code .= '<div class="spnAtcPlg clTxtW">'."\n";
$code .= '<span class="txtAtcPlg fs03">Profile</span>'."\n";
$code .= '</div>'."\n";
$code .= '</div>'."\n";
$code .= '</div>'."\n";
$code .= '<div class="wrpTl">'."\n";
$code .= '<div title="Close" class="btnIco closeTl clBd3 mgBtm10 deleterowbutton">'."\n";
$code .= '<span class="ico icoCloseTl"></span>'."\n";
$code .= '</div>'."\n";
$code .= '</div>'."\n";
$code .= '<form class="frmFrmPlg clTxt3 fs03">'."\n";
$code .= '<fieldset class="wrpFrmPlg">'."\n";
$code .= '<table class="tbGenInfo tbAddCtnt clTxt3 fs03">'."\n";
$code .= '<tbody><tr>'."\n";
$code .= '<th>Profile Image<br><span class="spnPfPlg fs01">recommended size : 600px X 600px</span></th>'."\n";
$code .= '<td>'."\n";
$code .= '<div class="wrpInTnAddInfoLd">'."\n";
$code .= '<div class="tnAddInfoLd clBd2 bdFull plgAreaThumbnail"></div>'."\n";
$code .= '<div class="addTnTl clBd2 bdBtm">'."\n";
$code .= '<div class="btnIco addImgTl clBd3 bdBtm uploadbutton" title="Browse">'."\n";
$code .= '<span class="ico icoAddImgTl"></span>'."\n";
$code .= '<div class="wrpUlFile">'."\n";

$code .= '</div>'."\n";
$code .= '</div>'."\n";
$code .= '<div class="btnIco addCldTl clBd3 bdBtm cloudbutton" title="Cloud">'."\n";
$code .= '<span class="ico icoAddCldTl"></span>'."\n";
$code .= '</div>'."\n";
$code .= '<div class="btnIco addLnkTl clBd3 bdBtm linkbutton" title="Link">'."\n";
$code .= '<span class="ico icoAddLnkTl"></span>'."\n";
$code .= '</div>'."\n";
$code .= '<div class="btnIco btnRmvTl deletebutton" title="Remove">'."\n";
$code .= '<span class="ico icoRmvTl"></span>'."\n";
$code .= '</div>'."\n";
$code .= '</div>'."\n";
$code .= '</div>'."\n";
$code .= '</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>First Name</th>'."\n";
$code .= '<td>'."\n";
$code .= '<input type="text" name="firstname" class="clBg5 clBd2 fs03 clTxt2">'."\n";
$code .= '</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Last Name</th>'."\n";
$code .= '<td>'."\n";
$code .= '<input type="text" name="lastname" class="clBg5 clBd2 fs03 clTxt2">'."\n";
$code .= '</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Nick Name</th>'."\n";
$code .= '<td>'."\n";
$code .= '<input type="text" name="nickname" class="clBg5 clBd2 fs03 clTxt2">'."\n";
$code .= '</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Class</th>'."\n";
$code .= '<td>'."\n";
$code .= '<input type="text" name="classroom" class="clBg5 clBd2 fs03 clTxt2">'."\n";
$code .= '</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Room/Group</th>'."\n";
$code .= '<td>'."\n";
$code .= '<input type="text" name="room" class="clBg5 clBd2 fs03 clTxt2">'."\n";
$code .= '</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Company</th>'."\n";
$code .= '<td>'."\n";
$code .= '<input type="text" name="company" class="clBg5 clBd2 fs03 clTxt2">'."\n";
$code .= '</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Job Title</th>'."\n";
$code .= '<td>'."\n";
$code .= '<input type="text" name="jobtitle" class="clBg5 clBd2 fs03 clTxt2">'."\n";
$code .= '</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Job Description</th>'."\n";
$code .= '<td>'."\n";
$code .= '<textarea name="jobdesc" class="clBg5 clBd2 fs03 clTxt2"></textarea>'."\n";
$code .= '</td>'."\n";
$code .= '</tr>'."\n";
$code .= '</tbody></table>'."\n";
$code .= '</fieldset>'."\n";
$code .= '</form>'."\n";
$code .= '</div>';
  
  
  $arraydata['form']=addslashes(str_replace(array("\r", "\n", "\r"), '', $code));
  //$arraydata['js'][]=pluginjsinfo.'/text.js';


  
  
      
  
  
  
  return $arraydata;
  
  
  
  
  
  
  
  }
  
  function getformlanding($arraydata)
  {
  
  
$code  = '<div class="ldIt wrpFrmLd clBg4">'."\n";
$code .= '<div class="wrpHdInfoGen mgBtm10">'."\n";
$code .= '<h2 class="clTxt2 fs04 boldGen">Profile</h2>'."\n";
$code .= '</div>'."\n";
$code .= '<table class="tbGenInfo tbFrmLd clTxt3 fs03">'."\n";
$code .= '<tbody><tr>'."\n";
$code .= '<th>Profile Image</th>'."\n";
$code .= '<td><a href="'.$arraydata['img']['newpath'].'" target="_blank" ><img width="100" height="100" class="pfImgPlg" alt="" src="'.$arraydata['simg']['newpath'].'"></a></td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>First Name</th>'."\n";
$code .= '<td>'.$arraydata['firstname'].'</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Lastname</th>'."\n";
$code .= '<td>'.$arraydata['lastname'].'</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Nickname</th>'."\n";
$code .= '<td>'.$arraydata['nickname'].'</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Class</th>'."\n";
$code .= '<td>'.$arraydata['classroom'].'</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Room/Group</th>'."\n";
$code .= '<td>'.$arraydata['room'].'</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Company</th>'."\n";
$code .= '<td>'.$arraydata['company'].'</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Job Title</th>'."\n";
$code .= '<td>'.$arraydata['jobtitle'].'</td>'."\n";
$code .= '</tr>'."\n";
$code .= '<tr>'."\n";
$code .= '<th>Job Description</th>'."\n";
$code .= '<td>'.$arraydata['jobdesc'].'</td>'."\n";
$code .= '</tr>'."\n";
$code .= '</tbody></table>'."\n";
$code .= '</div>';
 
   $data['str']=$code;
   $data['target']='secondtarget';
  
  return $data; 
  
  }
  
  function getplugin($plugreid)
  {
  
 
     $sql="select * from tb_plugins_profileform where plugreid=".$plugreid;
     $arrayplugin=$this->db->db_set_1recordrow($sql);

     $arrayplugin['img']= $this->getimagebyimgmid($arrayplugin['imgmid']);
     $arrayplugin['simg']= $this->getimagebyimgmid($arrayplugin['simgmid']);
  
     return $arrayplugin;

  
  
  

  
  }
  
  function saveplugin($arraydata,$productid,$plugreid)
  {
  $arraydata['productid']=$productid;
  $arraydata['plugreid']=$plugreid;
  $this->db->db_set($arraydata,'tb_plugins_profileform');
  
  }
 
  
  
  }
?>
